home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / Updates / AddOns / Scalos-ECM / Install_Module < prev    next >
Text File  |  2000-05-16  |  2KB  |  100 lines

  1. ; Installer for $VER:Execute Command 1.0 (07.11.1999)
  2. (SET @default-dest "SCALOS:Modules/")
  3. (SET @default-docdir "SCALOS:Docs/")
  4. (SET @default-images (CAT @default-dest "Images"))
  5. (SET default_lang 1)
  6.  
  7. ; ***** english texts *****
  8.  
  9. (SET #needKick (CAT "\nWBInfo needs Workbench Version 39 at least." ) )
  10.  
  11. (SET #startMsg (CAT "\nExecute Command V1.0 - the ultimate replacement !\n\n"
  12.                      "This script installs Execute_Command.module on your AMIGA.\n\n") )
  13.  
  14. (SET #destPrompt (CAT "Please choose the destination directory for Execute Command.\n" ) )
  15.  
  16. (SET #copyPFiles (CAT "Copying program files") )
  17.  
  18. (SET #langPrompt (CAT "Select the languages you wish to use with Execute Command.") )
  19.  
  20. (SET #DocPrompt (CAT "Select the directory for the documentation file.") )
  21.  
  22. (SET #exitMsg (CAT "Execute Command installation succeeded\nYou can use it now.") )
  23.  
  24.  
  25. ; ***** start installation *****
  26.  
  27. (if (< (/ (GETVERSION) 65536) 39)
  28.     (ABORT #needKick)
  29. )
  30.  
  31. (MESSAGE #startMsg)
  32.  
  33. ; ***** get dest dir for Execute Command *****
  34.  
  35. (SET @default-dest
  36.     (ASKDIR (PROMPT  #destPrompt)
  37.             (HELP    @askdir-help)
  38.             (DEFAULT @default-dest )))
  39.  
  40. (COPYFILES (SOURCE "Execute_Command.module")
  41.            (HELP @copyfiles-help)
  42.            (DEST @default-dest )
  43.            (INFOS)
  44.            (NOPOSITION)
  45. )
  46.  
  47. (COPYFILES (SOURCE "Images")
  48.            (ALL)
  49.            (HELP @copyfiles-help)
  50.            (DEST @default-images)
  51.            (INFOS)
  52. )
  53.  
  54. ; ***** install some languages *****
  55.  
  56. (SET language (ASKOPTIONS (PROMPT #langPrompt)
  57.                           (HELP   @askoptions-help)
  58.                           (CHOICES "english"
  59.                           )
  60.                           (DEFAULT (+ default_lang 0) )
  61.               )
  62. )
  63.  
  64. ;(if (IN language 1)
  65. ;    (COPYFILES (SOURCE "catalogs/deutsch/Execute_Command.catalog")
  66. ;               (DEST "Locale:Catalogs/deutsch") )
  67. ;)
  68.  
  69.  
  70.  
  71. ; ***** get dest for doc files *****
  72.  
  73. (SET @DocDir
  74.     (ASKDIR (PROMPT  #DocPrompt)
  75.             (HELP    @askdir-help)
  76.             (DEFAULT @default-docdir)
  77.             (NEWPATH)
  78.     )
  79. )
  80.  
  81. ; ***** install doc files *****
  82.  
  83. (if (IN language 0)
  84.   (SET SDocDir  "docs/english")
  85. )
  86.   
  87. (if (IN language 1)
  88.   (SET SDocDir "docs/deutsch")
  89. )  
  90.  
  91.  
  92. (COPYFILES (SOURCE  SDocDir)
  93.            (DEST    @DocDir)
  94.            (CHOICES "ExecuteCommand.guide")
  95.            (INFOS)
  96.            (NOPOSITION)
  97. )
  98.  
  99. (EXIT #exitMsg)
  100.